<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script src="../../../resource/js/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../../resource/js/util.js" type="text/javascript"></script>
    <script src="../../../resource/js/require.js" type="text/javascript"></script>
    <script src="../../../resource/js/app.js" type="text/javascript"></script>
    <script src="../../../resource/js/common.js" type="text/javascript"></script>
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <title>Document</title>
</head>
<body>

<input id="toLogin" type="button" value="点击弹出登录框"/>

<script>
    $("#toLogin").on("click", function () {
        console.log("点击事件触发,准备弹框！");
        require(['login'],function(login){
            login.init({success:function(){

            }});
        })
    });
</script>
</body>
</html>